<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">

</head>

<body>
  <script type="text/javascript">
    function pull (array, values) {
      // 填写代码
      let args = [...arguments].slice(1)
      for (let i = 0; i < array.length; i++) {
        if (args.indexOf(array[i]) !== -1) {
          array.splice(i, 1)
          i--
        }
      }
    }

    // 调用
    var array = ['a', 'b', 0, 'a', 'b', 'c', true];

    pull(array, 'a', 0);
    console.log(array);
        // => ['b', 'b', 'c', true]
  </script>
</body>

</html>